package com.fusion.ui.windows.search;

import javax.swing.tree.TreeNode;

/**
 * @author SwethaShivakumar 
 * Project: fusion
 * Date: Mar 20, 2009
 * URL: http://fusionwiki.co.cc
 * Mail Me At: shiva@fusionproject.co.cc
 */
public abstract class SearchTreeNode implements TreeNode {
    public Object getValueAt(int column) {
            switch(column) {
                case 0:
                    return getName();
                case 1:
                    return getSize();
                case 2:
                    return getExtension();
                case 3:
                    return getDaysAgo();
                case 4:
                    return getSources();
                case 5:
                    return getSpeed();
                default:
                    return "Undefined";
            }
    }

    public String getExtension() {
        return "";
    }

    public abstract String getName();
    public abstract double getSources();
    public abstract double getSpeed();
    public abstract long getSize();
    public abstract int getDaysAgo();
}
